<!DOCTYPE html>
<?php

ob_start();
require_once('control/pdo.php');

$sqlGetNewsType = "select * from news_type_info a where a.status = '1' order by uid asc limit 6";
$rsGetNewsType = $pdo->query($sqlGetNewsType);
$resultGetNewsType = $rsGetNewsType->fetch(PDO::FETCH_ASSOC);
?>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta name="filetype" content="0">
    <meta name="publishedtype" content="1">
    <meta name="pagetype" content="2">
    <meta name="catalogs" content="dangjian_0">
    <link rel="shortcut icon" href="http://archive.wenming.cn/jingtai/dangjian/images/favicon.ico" type="image/x-icon">
    <title>党建网</title>
    <link rel="stylesheet" href="./css/master2016.css">
    <link rel="stylesheet" href="./css/index-dj20171213.css">
    <link rel="stylesheet" href="./css/admin.css">
    <script type="text/javascript" src="./css/jquery-1.9.1.min.js"></script>
    <script src="./css/jquery.superslide.tab.2.1.1.js" type="text/javascript"></script>
    <script>
        //顶部文字专题滚动
        function b() {
            t = parseInt(x.css('top'));
            y.css('top', '19px');
            x.animate({top: t - 19 + 'px'}, 'slow');	//19为每个li的高度
            if (Math.abs(t) == h - 19) { //19为每个li的高度
                y.animate({top: '0px'}, 'slow');
                z = x;
                x = y;
                y = z;
            }
            setTimeout(b, 10000);//滚动间隔时间 现在是10秒
        }

        $(document).ready(function () {
            $('.swap').html($('.news_li').html());
            x = $('.news_li');
            y = $('.swap');
            h = $('.news_li li').length * 38; //19为每个li的高度
            setTimeout(b, 10000);//滚动间隔时间 现在是10秒

        })
    </script>


</head>
<body style="overflow-x:hidden;">

<div class="dj" style="padding: 0; width: 1020px; height: 154px;">
    <div class="inner">
        <div class="header">
            <div class="header-left">
                <a href="index.php"><img style="padding-bottom: 50px;" src="./icons/symbol.png"></a>
            </div>
            <div class="header-right">
                <div class="header-top">
                    <div class="header-pic1">

                        <div class="foucua01">
                            <ul class="slides_item01" style="position: relative; width: 560px; height: 93px;">

                                <li style="position: absolute; width: 560px; left: 0px; top: 0px; display: none;">
                                    <a href="http://www.dangjian.cn/djw2016sy/djw2016dtztc/201604/t20160426_3318886.shtml"
                                       target="_blank"><img src="./css/W020161124384578401337.png" alt="banner1-1.png"
                                                            title="" width="560" height="85"></a></li>

                                <li style="position: absolute; width: 560px; left: 0px; top: 0px;">
                                    <a href="http://dangjian.com/jrrd/xwmt/201505/t20150505_2595699.shtml"
                                       target="_blank"><img src="./css/W020161124385045731082.png" alt="banner1-4.png"
                                                            title="" width="560" height="85"></a></li>

                                <li style="position: absolute; width: 560px; left: 0px; top: 0px; display: none;">
                                    <a href="http://www.dangjian.cn/djw2016sy/djw2016dtztc/201604/t20160426_3318882.shtml"
                                       target="_blank"><img src="./css/W020161124384501294075.png" alt="banner1-5.png"
                                                            title="" width="560" height="85"></a></li>


                            </ul>
                            <div class="num" style="display:none">
                                <li class="">1</li>
                                <li class="on">2</li>
                                <li>3</li>
                            </div>
                        </div>

                    </div>
                    <div class="header-pic2">
                        <li><a href="http://jhsjk.people.cn/" target="_blank"><img
                                        src="./css/W020180202571094726487.jpg" alt="1.jpg" title="" width="265"
                                        height="85"></a>
                        </li>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="header-bottom">
                    <div class="date">
                        <div class="date" id="localtime"></div>

                        <script type="text/javascript">

                            function showLocale(objD) {
                                var str, colorhead, colorfoot;
                                var yy = objD.getYear();
                                if (yy < 1900) yy = yy + 1900;
                                var MM = objD.getMonth() + 1;
                                if (MM < 10) MM = '0' + MM;
                                var dd = objD.getDate();
                                if (dd < 10) dd = '0' + dd;
                                var hh = objD.getHours();
                                if (hh < 10) hh = '0' + hh;
                                var mm = objD.getMinutes();
                                if (mm < 10) mm = '0' + mm;
                                var ss = objD.getSeconds();
                                if (ss < 10) ss = '0' + ss;
                                var ww = objD.getDay();
                                if (ww == 0) colorhead = "<font color=\"#777\">";
                                if (ww > 0 && ww < 6) colorhead = "<font color=\"#777\">";
                                if (ww == 6) colorhead = "<font color=\"#777\">";
                                if (ww == 0) ww = "星期日";
                                if (ww == 1) ww = "星期一";
                                if (ww == 2) ww = "星期二";
                                if (ww == 3) ww = "星期三";
                                if (ww == 4) ww = "星期四";
                                if (ww == 5) ww = "星期五";
                                if (ww == 6) ww = "星期六";
                                colorfoot = "</font>"
                                str = colorhead + yy + "-" + MM + "-" + dd + " " + "  " + ww + colorfoot;
                                return (str);
                            }

                            function tick() {
                                var today;
                                today = new Date();
                                document.getElementById("localtime").innerHTML = showLocale(today);
                                window.setTimeout("tick()", 1000);
                            }

                            tick();
                        </script>
                    </div>
                    <div class="clear"></div>
                </div>
            </div>
            <div class="clear"></div>
        </div>
    </div>
</div>

<div class="nav">
    <div class="inner">
        <ul>
            <li class="nav1"><a href="context_index.php" target="context_inner">首页</a></li>

            <?php
            foreach ($pdo->query($sqlGetNewsType) as $key => $resultGetNewsType) {
                ?>
                <li class="nav1">
                    <a href="articlelist.php?uid=<?= $resultGetNewsType['uid'] ?>"
                       target="context_inner"><?php echo "$resultGetNewsType[news_type_name]" ?>
                    </a></li>
                <?php
            }
            ?>
            <li class="nav1"><a href="control/login.html" target="context_inner">登录</a></li><!--在当前页面打开-->
            <div class="clear"></div>
        </ul>
    </div>
</div>


<div class="context">
    <div class="conetext_inner">
        <iframe scrolling="no" frameborder="0" src="context_index.php" name="context_inner" width="100%" height="100%">
        </iframe>
    </div>

</div>

<div class="footer">
    <div class="inner">
        <div class="gywm">关于我们</div>
        <ul class="gywm1">
            <li class="lxwm">
                <h4><a href="http://www.dangjian.com/syzh/gywm/201107/t20110727_261695.shtml" target="_blank">联系我们</a>
                </h4>
                <p>地址：江西省南昌市东华理工大学南昌校区<br>邮编：330000 (函件)<br>热线电话：123456</p>
            </li>
            <li class="zx ml80" style="padding-left: 520px;">
                <ul>
                    <li>
                        <div class="zx1"></div>
                        <a href="http://www.dangjian.cn/syzh/xglj/zxdy/201608/t20160824_3622450.shtml">在线订阅</a></li>
                    <li class="mt13">
                        <div class="zx2"></div>
                        <a href="mailto:howardxue123@foxmail.com">在线投稿</a></li>
                    <li class="mt13">
                        <div class="zx3"></div>
                        <a href="mailto:howardxue123@foxmail.com">电子邮件</a></li>
                </ul>
            </li>

            <div class="clear"></div>
        </ul>
    </div>

</div>

<script>
    $(function () {
        $(".foucua01").slide({
            titCell: ".num",
            mainCell: ".slides_item01",
            effect: "fold",
            autoPlay: true,
            delayTime: 1000,
            autoPage: true,
            interTime: 5000
        });
        //delayTime:效果速度//effect：效果的展现形式


        //时代先锋
        var num = $('.box-pic').size();
        $('.wrap').width(62 * num + 8 * (num - 1));
        var a = 0;
        $('.btn').click(function () {
            var index1 = $(this).index('.btn');
            if (index1 == 0) {
                a--;
                if (a <= 0) {
                    a = 0;
                }
                $('.wrap').animate({left: -a * 70 * 2}, 500)
            } else if (index1 == 1) {
                a++;
                if (a >= (num - 4) / 2) {
                    a = (num - 4) / 2;
                }
                $('.wrap').animate({left: -a * 70 * 2}, 500)
            }
        })
    });

</script>

</body>
</html>